﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Data;
using CMP.ERP.Model;
using CMP.ERP.DAL;

namespace CMP.ERP.BLL
{
    public class LocalityBLL
    {
        LocalityDAL dal = new LocalityDAL();

        /// <summary>
        /// 获取第一级地区信息
        /// </summary>
        /// <param name="provice"></param>
        /// <returns></returns>
        public DataTable GetLocality(string provice)
        {
            return dal.GetLocality(provice);
        }

        /// <summary>
        /// 添加地区信息
        /// </summary>
        /// <param name="l"></param>
        /// <returns></returns>
        public int AddLocality(Province l)
        {
            return dal.AddLocality(l);
        }
    }
}
